package org.xxpay.core.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PayDomainExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    private Integer limit;

    private Integer offset;

    public PayDomainExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDomainUrlIsNull() {
            addCriterion("DomainUrl is null");
            return (Criteria) this;
        }

        public Criteria andDomainUrlIsNotNull() {
            addCriterion("DomainUrl is not null");
            return (Criteria) this;
        }

        public Criteria andDomainUrlEqualTo(String value) {
            addCriterion("DomainUrl =", value, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlNotEqualTo(String value) {
            addCriterion("DomainUrl <>", value, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlGreaterThan(String value) {
            addCriterion("DomainUrl >", value, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlGreaterThanOrEqualTo(String value) {
            addCriterion("DomainUrl >=", value, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlLessThan(String value) {
            addCriterion("DomainUrl <", value, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlLessThanOrEqualTo(String value) {
            addCriterion("DomainUrl <=", value, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlLike(String value) {
            addCriterion("DomainUrl like", value, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlNotLike(String value) {
            addCriterion("DomainUrl not like", value, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlIn(List<String> values) {
            addCriterion("DomainUrl in", values, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlNotIn(List<String> values) {
            addCriterion("DomainUrl not in", values, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlBetween(String value1, String value2) {
            addCriterion("DomainUrl between", value1, value2, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andDomainUrlNotBetween(String value1, String value2) {
            addCriterion("DomainUrl not between", value1, value2, "domainUrl");
            return (Criteria) this;
        }

        public Criteria andRiskStatusIsNull() {
            addCriterion("RiskStatus is null");
            return (Criteria) this;
        }

        public Criteria andRiskStatusIsNotNull() {
            addCriterion("RiskStatus is not null");
            return (Criteria) this;
        }

        public Criteria andRiskStatusEqualTo(Byte value) {
            addCriterion("RiskStatus =", value, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusNotEqualTo(Byte value) {
            addCriterion("RiskStatus <>", value, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusGreaterThan(Byte value) {
            addCriterion("RiskStatus >", value, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("RiskStatus >=", value, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusLessThan(Byte value) {
            addCriterion("RiskStatus <", value, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusLessThanOrEqualTo(Byte value) {
            addCriterion("RiskStatus <=", value, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusIn(List<Byte> values) {
            addCriterion("RiskStatus in", values, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusNotIn(List<Byte> values) {
            addCriterion("RiskStatus not in", values, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusBetween(Byte value1, Byte value2) {
            addCriterion("RiskStatus between", value1, value2, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andRiskStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("RiskStatus not between", value1, value2, "riskStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusIsNull() {
            addCriterion("DomainStatus is null");
            return (Criteria) this;
        }

        public Criteria andDomainStatusIsNotNull() {
            addCriterion("DomainStatus is not null");
            return (Criteria) this;
        }

        public Criteria andDomainStatusEqualTo(Byte value) {
            addCriterion("DomainStatus =", value, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusNotEqualTo(Byte value) {
            addCriterion("DomainStatus <>", value, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusGreaterThan(Byte value) {
            addCriterion("DomainStatus >", value, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("DomainStatus >=", value, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusLessThan(Byte value) {
            addCriterion("DomainStatus <", value, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusLessThanOrEqualTo(Byte value) {
            addCriterion("DomainStatus <=", value, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusIn(List<Byte> values) {
            addCriterion("DomainStatus in", values, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusNotIn(List<Byte> values) {
            addCriterion("DomainStatus not in", values, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusBetween(Byte value1, Byte value2) {
            addCriterion("DomainStatus between", value1, value2, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("DomainStatus not between", value1, value2, "domainStatus");
            return (Criteria) this;
        }

        public Criteria andDomainTypeIsNull() {
            addCriterion("DomainType is null");
            return (Criteria) this;
        }

        public Criteria andDomainTypeIsNotNull() {
            addCriterion("DomainType is not null");
            return (Criteria) this;
        }

        public Criteria andDomainTypeEqualTo(Byte value) {
            addCriterion("DomainType =", value, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeNotEqualTo(Byte value) {
            addCriterion("DomainType <>", value, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeGreaterThan(Byte value) {
            addCriterion("DomainType >", value, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("DomainType >=", value, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeLessThan(Byte value) {
            addCriterion("DomainType <", value, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeLessThanOrEqualTo(Byte value) {
            addCriterion("DomainType <=", value, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeIn(List<Byte> values) {
            addCriterion("DomainType in", values, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeNotIn(List<Byte> values) {
            addCriterion("DomainType not in", values, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeBetween(Byte value1, Byte value2) {
            addCriterion("DomainType between", value1, value2, "domainType");
            return (Criteria) this;
        }

        public Criteria andDomainTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("DomainType not between", value1, value2, "domainType");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNull() {
            addCriterion("AppId is null");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNotNull() {
            addCriterion("AppId is not null");
            return (Criteria) this;
        }

        public Criteria andAppIdEqualTo(String value) {
            addCriterion("AppId =", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotEqualTo(String value) {
            addCriterion("AppId <>", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThan(String value) {
            addCriterion("AppId >", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThanOrEqualTo(String value) {
            addCriterion("AppId >=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThan(String value) {
            addCriterion("AppId <", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThanOrEqualTo(String value) {
            addCriterion("AppId <=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLike(String value) {
            addCriterion("AppId like", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotLike(String value) {
            addCriterion("AppId not like", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdIn(List<String> values) {
            addCriterion("AppId in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotIn(List<String> values) {
            addCriterion("AppId not in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdBetween(String value1, String value2) {
            addCriterion("AppId between", value1, value2, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotBetween(String value1, String value2) {
            addCriterion("AppId not between", value1, value2, "appId");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyIsNull() {
            addCriterion("AppPrivateKey is null");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyIsNotNull() {
            addCriterion("AppPrivateKey is not null");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyEqualTo(String value) {
            addCriterion("AppPrivateKey =", value, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyNotEqualTo(String value) {
            addCriterion("AppPrivateKey <>", value, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyGreaterThan(String value) {
            addCriterion("AppPrivateKey >", value, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyGreaterThanOrEqualTo(String value) {
            addCriterion("AppPrivateKey >=", value, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyLessThan(String value) {
            addCriterion("AppPrivateKey <", value, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyLessThanOrEqualTo(String value) {
            addCriterion("AppPrivateKey <=", value, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyLike(String value) {
            addCriterion("AppPrivateKey like", value, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyNotLike(String value) {
            addCriterion("AppPrivateKey not like", value, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyIn(List<String> values) {
            addCriterion("AppPrivateKey in", values, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyNotIn(List<String> values) {
            addCriterion("AppPrivateKey not in", values, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyBetween(String value1, String value2) {
            addCriterion("AppPrivateKey between", value1, value2, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAppPrivateKeyNotBetween(String value1, String value2) {
            addCriterion("AppPrivateKey not between", value1, value2, "appPrivateKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyIsNull() {
            addCriterion("AlipayPublicKey is null");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyIsNotNull() {
            addCriterion("AlipayPublicKey is not null");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyEqualTo(String value) {
            addCriterion("AlipayPublicKey =", value, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyNotEqualTo(String value) {
            addCriterion("AlipayPublicKey <>", value, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyGreaterThan(String value) {
            addCriterion("AlipayPublicKey >", value, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyGreaterThanOrEqualTo(String value) {
            addCriterion("AlipayPublicKey >=", value, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyLessThan(String value) {
            addCriterion("AlipayPublicKey <", value, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyLessThanOrEqualTo(String value) {
            addCriterion("AlipayPublicKey <=", value, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyLike(String value) {
            addCriterion("AlipayPublicKey like", value, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyNotLike(String value) {
            addCriterion("AlipayPublicKey not like", value, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyIn(List<String> values) {
            addCriterion("AlipayPublicKey in", values, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyNotIn(List<String> values) {
            addCriterion("AlipayPublicKey not in", values, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyBetween(String value1, String value2) {
            addCriterion("AlipayPublicKey between", value1, value2, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andAlipayPublicKeyNotBetween(String value1, String value2) {
            addCriterion("AlipayPublicKey not between", value1, value2, "alipayPublicKey");
            return (Criteria) this;
        }

        public Criteria andMchIdIsNull() {
            addCriterion("MchId is null");
            return (Criteria) this;
        }

        public Criteria andMchIdIsNotNull() {
            addCriterion("MchId is not null");
            return (Criteria) this;
        }

        public Criteria andMchIdEqualTo(String value) {
            addCriterion("MchId =", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdNotEqualTo(String value) {
            addCriterion("MchId <>", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdGreaterThan(String value) {
            addCriterion("MchId >", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdGreaterThanOrEqualTo(String value) {
            addCriterion("MchId >=", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdLessThan(String value) {
            addCriterion("MchId <", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdLessThanOrEqualTo(String value) {
            addCriterion("MchId <=", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdLike(String value) {
            addCriterion("MchId like", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdNotLike(String value) {
            addCriterion("MchId not like", value, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdIn(List<String> values) {
            addCriterion("MchId in", values, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdNotIn(List<String> values) {
            addCriterion("MchId not in", values, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdBetween(String value1, String value2) {
            addCriterion("MchId between", value1, value2, "mchId");
            return (Criteria) this;
        }

        public Criteria andMchIdNotBetween(String value1, String value2) {
            addCriterion("MchId not between", value1, value2, "mchId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}